import { Component } from 'react'
import { useParams } from 'react-router-dom'
import withRouter from '../util/withRouter';

class Detail extends Component {

    constructor(props){
        super(props);
        console.log('props in detail ',this.props);
    }

    render(){
        return <div>我是详情页  </div>
    }
}

// const Detail = ()=>{

//     const params = useParams();  // 得到路由配置的路径动态参数  好处在于这个url会很好看！！！
//     console.log('params', params)


//     return <div>我是详情也</div>
// }

export default withRouter(Detail);